from flask import Flask, make_response, json, jsonify

app = Flask(__name__)
app.config['JSON_AS_ASCII'] = False


@app.route('/index', methods=['GET', 'POST'])
def index():
    data = {
        'name': '林子'
    }
    # response =make_response(json.dumps(data ,ensure_ascii=False))
    # response.mimetype ='application/json'
    # return response
    return jsonify(data)


if __name__ == '__main__':
    app.run(port=6000,host='127.0.0.1')
